package com.tools.common.exception;

import lombok.Getter;

@Getter
public class WorkflowException extends RuntimeException {
    
    private final String code;
    private final String message;
    
    public WorkflowException(String message) {
        super(message);
        this.code = "WORKFLOW_ERROR";
        this.message = message;
    }
    
    public WorkflowException(String code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }
}